From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 31 Aug 2006 17:54:50 +0000 (+0100) Subject: [TOOLS] xenctrl.h defines __XEN_TOOLS__ if it's not already. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15673^2~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=39cda1cf3ff58a6cfcdd93ed4361e419ea558ed4;p=xen.git [TOOLS] xenctrl.h defines __XEN_TOOLS__ if it's not already. Signed-off-by: Keir Fraser --- diff --git a/tools/debugger/gdb/gdbbuild b/tools/debugger/gdb/gdbbuild index 90cb4df4ea..419adab61d 100755 --- a/tools/debugger/gdb/gdbbuild +++ b/tools/debugger/gdb/gdbbuild @@ -18,7 +18,7 @@ cd gdb-6.2.1-linux-i386-xen if [ "$MAKE" ]; then $MAKE elif which gmake ; then - gmake -j4 CFLAGS=-D__XEN_TOOLS__ + gmake -j4 else - make -j4 CFLAGS=-D__XEN_TOOLS__ + make -j4 fi diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index f2f32c47bd..0a5cfadd3d 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -9,6 +9,11 @@ #ifndef XENCTRL_H #define XENCTRL_H +/* Tell the Xen public headers we are a user-space tools build. */ +#ifndef __XEN_TOOLS__ +#define __XEN_TOOLS__ 1 +#endif + #include #include #include